package ge.core.system.service;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.fzy.core.utils.RsUtils;

public class DictEntryListMapper implements RowMapper {

	public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
		DictEntryListVo vo = new DictEntryListVo();
		vo.setId(RsUtils.getLong("id", rs));
		vo.setName(rs.getString("name"));
		vo.setCode(rs.getString("code"));
		vo.setParentCode(rs.getString("parent_code"));
		vo.setParentType(rs.getString("parent_type"));
		vo.setTypeCode(rs.getString("type_code"));
		vo.setSerial(RsUtils.getLong("serial", rs));
		return vo;
	}

}
